package cn.tinlan.shopcoin.widget.category;

import com.blankj.utilcode.util.SDCardUtils;

/**
 * Created by Mortimer on 2018/12/11. 14:05
 * 佛祖🙏，永无bug。
 */
public class Constants {
    public static final String WXAPP_ID = "wxd930ea5d5a258f4f";



    /**
     * 图片路径
     */
    public static final String SAVE_REAL_PATH = SDCardUtils.getSDCardPaths().get(0) + "/AndroidIMG";


   //设置全局URL  url只能是域名 或者域名+端口号
//    public static final String BathURL = "http://192.168.101.218/";
//    public static final String IMGURL = "http://192.168.101.218/";
    public static final String BathURL = "http://1.qsls888.com/index.php/";
    public static final String IMGURL = "http://1.qsls888.com";
    /**
     * 分类列表
     * /Api/Category/index
     * @method get
     * @param pid(0顶级分类)
     * @return id,name,thumb,pid,sort
     */
    public static final String GoodCategory = "Api/Category/index";
    /**
     * 商品列表
     * /Api/goods/index
     * @method get
     * @param sort_price(1小到大，2大到小),sort_sale(1小到大，2大到小),page,name(关键词),cate_id,shop_id
     * @return id,name,thumb,price,market_price,type,stock,sales
     */
    public static final String GoodCategoryDetail = "Api/goods/index";
    /**
     * 商品规格
     * /Api/Goods/stock
     * @mehtod get
     * @param  goods_id
     * @return "id": "1","color": "灰色","size": "s","stock": "100"
     */
    public static final String GoodsDetailStock = "Api/Goods/stock";
    /**
     * 商品详情
     * /Api/goods/detail
     * @mehtod get
     * @param  id
     * @return id,name,thumb,stock,price,market_price,type,images,intro,shop_id
     */
    public static final String GoodsDetail = "Api/goods/detail";

    /**
     * 添加购物车
     * /Api/Cart/addCart
     * @mehtod post
     * @param  goods_id,user_id,buy_num
     * @return "data": "添加成功"
     */
    public static final String AddGoodsToCar = "Api/Cart/addCart";

    /**
     * 购物车列表
     * /Api/Cart/index
     * @mehtod get
     * @param  user_id
     * @return "id""goods_id""buy_num""name""price""thumb"
     */
    public static final String ShoppingCar = "Api/Cart/index";

     /**
      * 修改购物车够买数量
      * /Api/Cart/buynumEdit
      * @mehtod post
      * @param  id(购物车id),buy_num
      * @return {code:1,data:'修改成功'}
      */
     public static final String ShoppingCarNumEdit = "Api/Cart/buynumEdit";


    /**
     * 删除购物车
     * /Api/Cart/delCart
     * @mehtod post
     * @param  ids(购物车列表ID集合 1，2，3)
     * @return "data": "添加成功"
     */
    public static final String DeleteGoodsFromCar = "Api/Cart/delCart";

    /**
     * 用户收货地址
     * /Api/User/address
     * @mehtod get
     * @param  user_id
     * @return "name": "zdf","tel": "18236987721","zone": "河南省郑州市金水区","address": "东风路花园路世玺中心1811室","status": "1"    // 1默认收货地址 0非默认收货地址
     */
    public static final String UserAddressList = "Api/User/address";

    /**
     * 添加用户收货地址
     * /Api/User/addressAdd
     * @mehtod post
     * @param  user_id,name,tel,zone(地址区域),address,status（默认收货地址1是，0否）
     * @return "code": 1,"data": "添加成功"
     */
    public static final String UserAddAddress = "Api/User/addressAdd";

    /**
     * 修改用户收货地址
     * /Api/User/addressEdit
     * @mehtod post
     * @param  id,user_id,name,tel,zone(地址区域),address,status（默认收货地址1是，0否）
     * @return "code": 1,"data": "添加成功"
     */
    public static final String UserEditAddress = "Api/User/addressEdit";

    /**
     * 删除收货地址
     * /Api/Cart/addressDel
     * @mehtod post
     * @param  id
     * @return "code": 1,"data": "删除成功"
     */
    public static final String UserDelAddress = "Api/Cart/addressDel";

//    /**
//     * 获取默认收货地址
//     * /Api/Cart/addressDefault
//     * @mehtod post
//     * @param  id,user_id
//     * @return "code": 1,"data": "设置成功"
//     */
//    public static final String UserDefaultAddress = "/Api/Cart/addressDefault";


    /**
     * 默认收货地址
     * /Api/Cart/getDefaultAddress
     * @mehtod get
     * @param  user_id
     * @return "id": "1","name": "zdf","tel": "18236987721","zone": "河南省郑州市金水区","address": "东风路花园路世玺中心1811室","status": "1"
     */
     public static final String UserDefaultAddress = "Api/Cart/addressDefault";


     /**
      * 余额充值
      * /Api/User/recharge
      * @method post
      * @param user_id,pay_type(1支付宝 2微信),money(充值金额)
      */
     public static final String UserRecharge = "Api/User/recharge";

      /**
       * 订单列表
       * /Api/Order/index
       * @method post
       * @param user_id,page,status
       * {"code": 1,"data":
       * [{"id": "5","order_sn": "2018122018211332cfb44186",
       "money": "122.00","remark": "cs","status": "1","mtype": "1","addtime": "1545301273",
       "sendtime": "0",
       "goods":[{"id": "6","order_id": "5","goods_id": "4","price": "122",
       "stock_id": "0","buy_num": "1","name": "2017夏季新款韩版显瘦中长款露背交叉短袖显瘦雪纺连衣裙子女潮",
       "thumb": "/Uploads/20181217/789a27bdeaecb48d708c2f473885f4e3.jpg","addtime": "1545301273",
       "shop_id": "1","shop_name": "Fans旗舰店"}]}]}
       */
       public static final String OrderList = "Api/Order/index";

      /**
      * 确认订单
      * /Api/Order/createOrder
      * @method post
      * @param user_id,address_id,cart[goods_id,stock_id,buy_num],remark,mtype(发货类型1自提2物流)
      */
      public static final String OrderCreate = "Api/Order/createOrder";


      /**
       * 删除未支付订单
       * /Api/Order/ orderDel
       * @method post
       * @param id
       * */
      public static final String OrderDelete = "Api/Order/orderDel";

      /**
       * 订单支付
       * /Api/Order/ orderPay
       * @method post
       * @param id
       * */
      public static final String OrderPay = "Api/Order/orderPay";

      /**
       * 确认收货
       * /Api/Order/ confirm
       * @method post
       * @param id
       * */
      public static final String OrderConfirm = "Api/Order/confirm";

       /**
        * 余额提现
        * /Api/User/cash
        * @method post
        * @param user_id,amount
        * */
       public static final String UserWithRaw = "Api/User/cash";

       /**
        * 提现记录
        * /Api/User/cashLog
        * @method get
        * @param user_id,page
        * "amount": "500.00",		//提现金额"pay_amount": "400.00",	//实际到账金额
       "pay_time": "0",		//支付时间"addtime": "1545363162",	//添加时间
       "status": "0"		//0未支付  1已支付
        * */
       public static final String UserMoneyWithrawHistory = "Api/User/cashLog";


        /**
         * 用户余额变更记录
         * /Api/User/ moneyLog
         * @method get
         * @param user_id,page,type
         * "old_num": "718.00",	//变更前余额"new_num": "218.00",	//变更后余额
        "change_num": "500.00",	//变更余额"type": "3", 	//类型  1余额充值  2商城购物 3余额提现 4赠送锦鲤   5接收锦鲤
        "remark": "余额提现-500",	//备注"addtime": "1545363162"
         * */
        public static final String UserMoneyRechargeHistory = "Api/User/moneyLog";

        /**
         * 老用户登录
         * /Api/Login/index
         * @method post
         * @param  mobile,pwd
         * @return data
         */
        public static final String LoginApp = "Api/Login/index";

        /**
         * 非福链新用户注册
         * /Api/Login/user_register
         * @method post
         * @param  verify(手机验证码),mobile(手机号),pwd(密码),wx(微信),zfb(支付宝),username(用户名),city(城市名),r_code(推荐码)
         * @return {code:1,data:'注册成功'}
         */
        public static final String RegisterNewFFUser = "Api/Login/user_register";

         /**
          * 福链用户注册
          * /Api/Login/new_user_login
          * @method post
          * @param  mobile(用户手机号) verify(手机验证码),wx,zfb,pwd
          * @return {code:1,data:注册成功}
          */
         public static final String RegisterNewUser = "Api/Login/new_user_login";

         /**
          * 新用户获取验证码
          * /Api/Login/get_verify
          * @method post
          * @param  mobile
          * @return {code:'1',data:'123456'}
          */
         public static final String RegisterGetVerify = "Api/Login/get_verify";

//         public static final String RegisterGetVerify = "Api/Login/forget_pwd_verify";
         /**
          * 忘记密码验证码获取
          * /Api/Login/forget_pwd_verify
          * @method post
          * @param  mobile
          * @return {code:'1',data:'123456'}
          */
         public static final String ForgetPWDVerify = "Api/Login/forget_pwd_verify";
         /**
          * 找回密码
          * /Api/Login/forget_pwd
          * @method post
          * @param  mobile , verify , pwd
          * @return {code:1,data:'设置成功'}
          */
         public static final String PWDRestting = "Api/Login/forget_pwd";
          /**
           * 获取最新公告
           * /Api/Notice/newest_notice
           * @method get
           * @param
           * @return title,content
           */
          public static final String KoiNoticeNews = "Api/Notice/newest_notice";

          /**
           * 获取最新公告
           * /Api/Notice/index
           * @method get
           * @param
           * @return page
           */
          public static final String KoiNoticeList = "Api/Notice/index";

          //用户签到  post user_id
          public static final String KoiSignIn = "Api/User/sign_in";
          // 签到查询
          public static final String KoiIsSignIn = "Api/User/is_signIn";

          /**
           * 寻找资助
           * /Api/Support/index
           * @method get
           * @param user_id(登录的用户id)
           * @return {code:1,data(id,user_info[r_code(推荐码),qualification(资格数),admission(入场状态 1准许进入 2入场中  3禁止入场),vip(1普通会员  2补位账号)],fields[fields_id(轮回轮回期次id),r_code(推荐码)])}
           */
//          public static final String KoiSeek = "Api/Support/index";


          /**
           * 用户信息获取
           * /Api/User/index
           * @method get
           * @param user_id(登录的用户id)
           * @return data*/
          public static final String KoiUserInfo = "Api/User/index";


         /**
          * 新用户入场
          * /Api/Fields/user_join
          * @method post //get
          * @param  user_id(当前登录用户id)//,r_code(推广码),fields_id(轮回表id)
          * @return data*/
         public static final String KoiNewPersonJ = "Api/Fields/user_join";


         /**
          * 积分转赠
          * /Api/Fields/send_amount
          * @method post
          * @param r_code(接收人的推荐码) , account(积分) , user_id(转赠人id)
          * @return {code:1,data:'转赠成功'}
          * */
         public static final String KoiSendPoint = "Api/Fields/send_amount";

         /**
          * 随机获取推荐码
          *  /Api/Support/get_rand_r_code
          * @method get
          * @param user_id
          * @return {code:1,data:'转赠成功'}
          * */
         public static final String KoiGetRandCode = "Api/Support/get_rand_r_code";

         /**
          * dcc变更记录
          *  /Api/User/get_user_dcc
          * @method get
          * @param mobile
          * @return string
          * */
         public static final String KoiRefreshDCC = "Api/User/get_user_dcc";

           /**
            * 资助别人列表(送出锦鲤)
            * /Api/Support/payment
            * @method get
            * @param $user_id(登录用户id) , $page
            * @return id,order_sn(对照码),recipient_id(接收人id),sponsor_id(资助人id),account(金额),dcc_account(dcc数量),status(确认状态),addtime(添加时间),dcc_amount(dcc账号),wx(微信),zfb(支付宝)
            * */
           public static final String KoiSupportPayment = "Api/Support/payment";

          /**
           * 资助别人确认
           * /Api/Support/payment_action
           * @method post
           * @param  id
           * @return {code:1,data:'操作成功'}
           * */
          public static final String KoiSupportPaymentOK = "Api/Support/payment_action";

         /**
           * 接收资助列表(接受锦鲤)
           * /Api/Support/income
           * @method get
           * @param $user_id(登录用户id) , $page
           * @return id,order_sn(对照码),recipient_id(接收人id),sponsor_id(资助人id),account(金额),dcc_account(dcc数量),status(确认状态),addtime(添加时间),dcc_amount(dcc账号),wx(微信),zfb(支付宝)
           * */
          public static final String KoiSupportIncome = "Api/Support/income";

       /**
        * 接收资助确认
        * /Api/Support/income_action
        * @method post
        * @param  id
        * @return{code:1,data:'操作成功'}
        * */
       public static final String KoiSupportIncomeOK = "Api/Support/income_action";
 /**
  * 锦鲤留言列表
  * /Api/Letter/index
  * @method get
  * @param  support_id user_type
  * @return{code:1,data:}
  * */
 public static final String KoiMessageList = "Api/Letter/index";

 /**
  * 锦鲤留言
  * /'Api/Letter/add_letter
  * @method get
  * @param  user_id : user_id,support_id : support_id,content : content,user_type: user_type
  * @return{code:1,data:}
  * */
 public static final String KoiAddMessage = "Api/Letter/add_letter";


 /**
  * 获取轮播广告
  * /Api/Index/banner
  * @method get
  * @param
  * @return {id,name,thumb,jump_url}
  */
 public static final String HomeBanner = "Api/Index/banner";
 /*
  * /Api/User/update   商家版本更新    get
  * @param  type 1(IOS) 2(android)
  * @return  version(版本号),must(1强制),name(名称),des(版本更新内容),url(更新地址)
  */
 public static final String APPUpdate = "Api/User/update";


 /*
  * /Api/User/edit_information   修改用户信息    get
  * @param  id,mobile,wx,zfb,verify,r_code,city,username
  * @return{ "code": 1, "data": "操作成功"}
  * */
 public static final String EditUserInfo = "Api/User/edit_information";

 /*
  *  /Api/Config/minRecharge  单笔最小充值金额    get
  * @param  id,mobile,wx,zfb,verify,r_code,city,username
  * @return {code:1,data:'100'(单笔最小充值金额)}
  * */
 public static final String ConfigMinRecharge = "Api/Config/minRecharge";


 /*
  *  Api/Config/cash_param  提现参数获取    get
  * @param  id,mobile,wx,zfb,verify,r_code,city,username
  * @return min_cash(余额提现下限),cash_poundage(提现收取比率),min_poundage(提现最低手续费)
  * */
 public static final String ConfigMinCash = "Api/Config/cash_param";
}
